<script>
	export default {
		onLaunch: function() {
			
			// console.log(uni.getStorageSync('getui_cid'))
			
			
			// #ifdef H5
			
				setTimeout(()=>{
					const todo = uniCloud.importObject('userinfo', {
						customUI: true,
					})
					todo.regettoken({
						token:uni.getStorageSync('user').token
					}).then(res => {
						if(res.code == 401){
							uni.reLaunch({
								url:"/pages/login"
							})
						}else{
							if(res.data.token){
								let userb = uni.getStorageSync('user')
								userb.token = res.data.token
								uni.setStorageSync('user',userb)
							}
						}
					})
				},3000)
				
			
			
			
			// 	 var aa =
			// {
			//     "id": "1bf5d5a360b2a80013e9e9d870273d667aafab94882245aa1f329035c76ae266",
			//     "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NzNkNTUxNjg5ODc4MWVmZGI1YzRkOGMiLCJ1c2VybmFtZSI6ImV4YW1wbGVVc2VyIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzMyMDcyNzI4LCJleHAiOjE3MzQ2NjQ3Mjh9.oOFIIsfbotRHbs1MnpSz7gTxPPCXV48LedjnGXINcrI",
			//     "name": "浜屽垎閽�1732072728473",
			//     "avatar": "https://env-00jxhg1dwd0b.normal.cloudstatic.cn/20241106102454.png?expire_at=1730863575&er_sign=9f55e8c3a44a02d8eb5aee8c48618cec"
			// }
			// 	uni.setStorageSync('user',aa)
			// #endif
			
		 
		 
		 
			
			
			 
				
				// var oob = {
				// 		"avatar": "https://env-00jxhg1dwd0b.normal.cloudstatic.cn/20241106102454.png?expire_at=1730863575&er_sign=9f55e8c3a44a02d8eb5aee8c48618cec",
				// 		"name": "二分钟 1730884194901"
				// 	}
				// oob.isadd = false
				// oob.iscount = 1
				// if(uni.getStorageSync('adduser')){
				// 	var ares = uni.getStorageSync('adduser')
				// 	console.log(ares)
				// 	ares.push(oob)
				// 	uni.setStorageSync('adduser',ares)
				// }else{
				// 	uni.setStorageSync('adduser',[oob])
				// }
			
			
			
			
		
		
		
		
			console.log("dddd")
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<!-- 别名: dan
创建日期: 2024-11-4
条目类型: PrivateKeyEntry
证书链长度: 1
证书[1]:
所有者: CN=g, OU=f, O=d, L=s, ST=a, C=r
发布者: CN=g, OU=f, O=d, L=s, ST=a, C=r
序列号: 3d083f74
有效期为 Mon Nov 04 15:01:11 CST 2024 至 Wed Oct 11 15:01:11 CST 2124
证书指纹:
         MD5:  59:54:E8:C6:4D:B3:F3:4A:B9:23:6B:91:0B:CB:50:8E
         SHA1: 5E:B1:6D:EC:72:D8:94:0C:AD:DA:D3:26:F7:35:BD:0D:3D:83:7A:1B
         SHA256: 4E:19:46:8E:74:96:B9:FD:CF:F4:1F:EE:E7:2A:AD:14:99:C2:21:9F:67:43:B1:34:2C:31:7B:63:B2:AD:F5:F1
签名算法名称: SHA256withRSA
主体公共密钥算法: 2048 位 RSA 密钥
版本: 3

扩展:

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 1B 53 22 09 3F 4B 1D C6   63 F8 4C 0A 62 CC D8 0A  .S".?K..c.L.b...
0010: AB 89 38 FB                                        ..8.
]
] -->
<style>
	/*每个页面公共css */
</style>
